How to solve a logarithmic equation